
function fillNavId(url,menu){
  var wenhaoIndex = url.indexOf('?')
  if (wenhaoIndex >= 0) {
    url = url + `&navId=${menu.id}`
  } else {
    url = url + `?1=1&navId=${menu.id}`
  }
  return url;
}
/*
* 1 如果是  manage 开头 加入路径  http://localhost:81  http://www.szqerp.com
* */
export function fillUrlFromApp(url,menu){
   url=fillNavId(url,menu)
  if (url?.indexOf('/manage/') >= 0) {
    url=import.meta.env.VITE_HOST_URL+url
  }
  return url
}
